package com.life.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "文章返回的数据格式")
public class ArticleVO {

    @ApiModelProperty("主键值")
    private Long id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("标签ID")
    private Long tagId;

    @ApiModelProperty("标签")
    private String tag;

    @ApiModelProperty("封面id")
    private Long coverId;

    @ApiModelProperty("封面链接")
    private String coverUrl;

    @ApiModelProperty("封面宽度")
    private Integer coverWidth;

    @ApiModelProperty("封面高度")
    private Integer coverHeight;

    @ApiModelProperty("是否置顶")
    private Integer isTop;

    @ApiModelProperty("是否隐藏")
    private Integer status;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
}
